using CSA.Application;
using CSA.Infrastructure.DTO;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Collections.Generic;

namespace CSA.Web.Pages.Admin.User
{
    //[Authorize]
    public class IndexModel : PageModel
    {
        private UserApp _userApp;
        public IndexModel(UserApp userApp)
        {
            _userApp = userApp;
        }
        public List<UserDTO> Users { get; set; }
        public void OnGet()
        {
            Users = _userApp.GetUsers();
        }
    }
}